package net.flowas.genericcrud;

import net.flowas.genericcrud.dto.QueryOption;

public class ExecuteContext {
	private Object result;
	private QueryOption queryOption;
	private CrudType action;
	private String modelType;
	private Class modelClass;

	public ExecuteContext(Class modelClass, CrudType action, QueryOption option) {
		this.modelClass=modelClass;
		this.modelType=modelClass.getSimpleName();
		this.action=action;
		this.queryOption=option;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public QueryOption getQueryOption() {
		return queryOption;
	}

	public void setQueryOption(QueryOption queryOption) {
		this.queryOption = queryOption;
	}

	public String getModelType() {
		return modelType;
	}

	public void setModelType(String modelType) {
		this.modelType = modelType;
	}

	public CrudType getAction() {
		return action;
	}

	public void setAction(CrudType action) {
		this.action = action;
	}

	public Class getModelClass() {
		return modelClass;
	}

	public void setModelClass(Class modelClass) {
		this.modelClass = modelClass;
	}

}
